package org.xbzheng.restful_study.tool;

import java.util.Collection;
import java.util.List;

/**
 * Created by Administrator on 2016/11/17.
 */
public class ObjectTool {

    public static boolean isEmpty(Object[] obj) {
        return obj == null || obj.length == 0;
    }

    public static <T> boolean isEmpty(Collection<T> param){
        return param == null || param.isEmpty();
    }


}
